<script setup>
 onMounted(() => {
   document.cookie = 'lang=ru; path=/;'
 })
</script>
<template>
  <div>
    <NuxtLink to="/text">
      <el-button>
        Text
      </el-button>
    </NuxtLink >

  </div>
</template>
